package org.jeecg.modules.demo.pubuyorderToRk.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 采购订单
 * @Author: jeecg-boot
 * @Date:   2022-05-20
 * @Version: V1.0
 */
@Data
@TableName("pu_buy_order")
@ApiModel(value="pu_buy_order对象", description="采购订单")
public class PuBuyOrderToRk implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private String poOrder;
    /**职工号*/
    @Excel(name = "职工号", width = 15)
    @ApiModelProperty(value = "职工号")
    private String staffNo;
    /**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String puConNo;
    /**订货日期*/
    @Excel(name = "订货日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "订货日期")
    private Date poDate;
    /**截止日期*/
    @Excel(name = "截止日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "截止日期")
    private Date poEnddate;
    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dicCode = "id",dictTable = "sys_user",dicText = "realname")
    private String poStaff;
    /**订单总量*/
    @Excel(name = "订单总量", width = 15)
    @ApiModelProperty(value = "订单总量")
    private BigDecimal poTotail;
    /**最小量*/
    @Excel(name = "最小量", width = 15)
    @ApiModelProperty(value = "最小量")
    private BigDecimal poMin;
    /**最大量*/
    @Excel(name = "最大量", width = 15)
    @ApiModelProperty(value = "最大量")
    private BigDecimal poMax;
    /**创建时间*/
    @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "创建时间")
    private Date poCreateDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    @Dict(dicCode= "checkState")
    private Integer shenhe;

    private Integer shanchu;

    //运输方式
    private String transport;
    //含税单价
    private Double hsdj;
    //含税金额
    private Double hsje;
    //合同号
    private String hth;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;
    //无税单价
    private Double wsdj;
    //无税金额
    private Double wsje;
    /**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private BigDecimal psTax;
    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private Integer psTaxrat;
    //计量单位
    private String measureunit;

    private String zhilzbjson;

    private String zhilzb;

    private String unit;

    private Integer zhijian;

    private String realzb;

    private String chumdwmc;
    //业务类型
    @Dict(dicCode = "ywlx")
    private String ywlx;

    private String remark;
    //审核人
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private String checkmen;
    //存货名称
    private String cinvname;
    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;

    private Integer invoice;
    private BigDecimal ykje;

    private BigDecimal yktotal;

    private BigDecimal zjtotal;
    /**发站名称*/
    @Excel(name="发站名称",width=15)
    private java.lang.String fazbm;
    /**到站名称*/
    @Excel(name="到站名称",width=15)
    private java.lang.String daozbm;

    private String htfj;

    private Integer ykhx;
    /**
     * 租户ID
     */
    private Integer tenantId;

    private BigDecimal yhxTotail;
    private BigDecimal yhxMoney;
    private  String tradecode;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;
    private Integer documentType;
    @Dict(dicCode = "odlx")
    private Integer odlx;
    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
